package com.xb.services;
import com.xb.domain.User;
import com.xb.domain.UserExample;
import com.xb.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * @author zch
 */
@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;
	@Override
	public long countByExample(UserExample example) {
		return userMapper.countByExample(example);
	}
	@Override
	public int deleteByExample(UserExample example) {
		return userMapper.deleteByExample(example);
	}
	@Override
	public int deleteByPrimaryKey(String host, String user) {
		return userMapper.deleteByPrimaryKey(host, user);
	}
	@Override
	public int insert(User record) {
		return userMapper.insert(record);
	}
	@Override
	public int insertOrUpdate(User record) {
		return userMapper.insertOrUpdate(record);
	}
	@Override
	public int insertOrUpdateSelective(User record) {
		return userMapper.insertOrUpdateSelective(record);
	}
	@Override
	public int insertSelective(User record) {
		return userMapper.insertSelective(record);
	}
	@Override
	public int updateByExampleSelective(User record, UserExample example) {
		return userMapper.updateByExampleSelective(record, example);
	}
	@Override
	public int updateByExample(User record, UserExample example) {
		return userMapper.updateByExample(record, example);
	}
	@Override
	public int updateByPrimaryKeySelective(User record) {
		return userMapper.updateByPrimaryKeySelective(record);
	}
	@Override
	public int updateByPrimaryKey(User record) {
		return userMapper.updateByPrimaryKey(record);
	}
	@Override
	public int updateBatch(List<User> list) {
		return userMapper.updateBatch(list);
	}
	@Override
	public int batchInsert(List<User> list) {
		return userMapper.batchInsert(list);
	}
	@Override
	public List<User> selectByExample(UserExample example) {
		return userMapper.selectByExample(example);
	}
	@Override
	public User selectByPrimaryKey(String host, String user) {
		return userMapper.selectByPrimaryKey(host, user);
	}
	@Override
	public List<User> selectAllUserList() {
		return userMapper.selectAllUserList();
	}
}
